package com.imufe.chemicalenterprisedangerwarning.controller;

import com.imufe.chemicalenterprisedangerwarning.service.DepartmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * <p>
 * 部门表 前端控制器
 * </p>
 *
 * @author BaiBan
 * @since 2022-09-21
 */
@ApiIgnore
@Api(tags = "部门")
@RestController
@RequestMapping("/department")
public class DepartmentController {

    @Autowired
    DepartmentService service;

    @ApiOperation(value = "新增部门")
    @PostMapping("create")
    public void create(String name) {
        service.create(name);
    }
}
